<?php
use App\Animal\Cat;
use App\Animal\Dog;
use App\Animal\Fish;
use App\Zoo;

function __autoload()
{
	$classFile = str_replace('\\', DIRECTORY_SEPARATOR, $classFile) . 'app';
	require_once $classFile;
}

$cat1 = new Cat('Tom猫', '蓝', 30);
$cat2 = new Cat('jeacke猫', '咖啡', 10);
$fish1 = new Fish('mary鱼', '黄');
$fish2 = new Fish('jhon', '金');
$dog1 = new Dog('mike', '白');

$Zoo = new Zoo();
$zoo->addAnimal($cat1);
$zoo->addAnimal($cat2);
$zoo->addAnimal($fish1);
$zoo->addAnimal($fish1);
$zoo->addAnimal($dog1);

$zoo->watch();

$zoo->kill();